package com.xsf.spring.cloud.alibaba.sentinel.consumer.feign;

import com.xsf.spring.cloud.alibaba.sentinel.consumer.feign.service.ProviderFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {
    @Autowired
    private ProviderFeignClient providerFeignClient;
    @GetMapping("/feign/{name}")
    public String echo(@PathVariable String name){
        return this.providerFeignClient.echo(name);
    }
}
